package com.topscomm.main.config;

import com.topscomm.pub.util.SecurityUtil;

/**
 * @BelongsProject: bsp
 * @BelongsPackage: com.topscomm.main.config
 * @Author: wuyuyang
 * @CreateTime: 2022-08-15  11:25
 * @Description: TODO
 * @Version: 1.0
 */
public class Decrypt {

    public static void main(String[] args) {
        //  plainString :密文
        String plainString= "579ec88c8317ece38d28e0e1fcca65e2a9053fe965c3e2cf3dcb4b88f0d0eb5c";
        System.out.println("解密前："+plainString);
        System.out.println("解密后："+Decrypt.dec(plainString));
    }


    public static String dec(String plainString){
        String mm = SecurityUtil.decryptDes(plainString.trim(), "topscommkey");
        return mm;
    }
}

